package com.example.entity;

import com.example.dao.StudentDao;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component("student")
public class Student {
    @Value("#{20+6}")
    private int age;
    @Value("张三")
    private String name;
}
